vchiq_arm: Avoid use of mutex in add_completion
authorPhil Elwell <phil@raspberrypi.org>
Mon, 20 Jun 2016 12:51:44 +0000 (13:51 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 20:28:34 +0000 (20:28 +0000)
commit3d17f0eb02770a2d3a0a73d3ea63b75b7b5e876c
tree13590224b101dc1e3b6379ae2d38ae6456bf8da4
parentd99e8fa79d8614edb893b5d39831bf616d1846b5
vchiq_arm: Avoid use of mutex in add_completion

Claiming the completion_mutex within add_completion did prevent some
messages appearing twice, but provokes a deadlock caused by vcsm using
vchiq within a page fault handler.

Revert the use of completion_mutex, and instead fix the original
problem using more memory barriers.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c